import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)


export const constantRouterMap = [
  {path:'/login',component: () => import('@/views/login/index')},
  {
    path:'/home',
    component: () => import('@/views/layout/Layout'),
    children:[
      {path:'user',component: () => import('@/views/user/index')}
    ]
  }
]


export default new Router({
  routes:constantRouterMap
})
